/*    */ package com.qmsk.business.task.complaint.dao;
/*    */ 
/*    */ import com.qmsk.business.sys.basic.SupportDAO;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import java.sql.SQLException;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ import org.springframework.stereotype.Repository;
/*    */ 
/*    */ @Repository
/*    */ public class ComplaintDao extends SupportDAO
/*    */ {
/*    */   public GsonEbRst getGsonOfParams(Map<String, Object> params, Integer nPageIdx, Short nPageSize)
/*    */     throws SQLException
/*    */   {
/* 17 */     return getGsonOfParams("selectSqlOfOpt", params, nPageIdx, nPageSize, true);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGsonOfOpt(Map<String, Object> params, Integer nPageIdx, Short nPageSize) throws SQLException
/*    */   {
/* 22 */     return getGsonOfParams("selectSqlOfOpt", "selectCountSqlOfOpt", 
/* 23 */       "selectJsonOfOpt", params, nPageIdx, nPageSize);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGsonOfShopId(Object shopId, Integer nPageIdx, Short nPageSize) throws SQLException {
/* 27 */     Map params = new HashMap();
/* 28 */     params.put("shopId", shopId);
/* 29 */     return getGsonOfOpt(params, nPageIdx, nPageSize);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGsonOfId(Long id) throws SQLException {
/* 33 */     Map params = new HashMap();
/* 34 */     params.put("id", id);
/* 35 */     return getGsonOfOpt(params, Integer.valueOf(0), Short.valueOf((short) 1));
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGsonOfAll(Map<String, Object> params) throws SQLException {
/* 39 */     return getGsonOfParams("selectSqlOfOpt", params, false);
/*    */   }
/*    */ 
/*    */   public Integer selectCountSqlOfOpt(Map<String, Object> params) throws SQLException {
/* 43 */     return queryForInt("selectCountSqlOfOpt", params, Integer.valueOf(0));
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.task.complaint.dao.ComplaintDao
 * JD-Core Version:    0.5.3
 */